package com.dong.mcd.dao;

import com.dong.mcd.model.SysMenu;
import com.dong.mcd.model.SysMenuExample;
import com.dong.mcd.pub.PagerMapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SysMenuMapper extends PagerMapper {
    int countByExample(SysMenuExample example);

    int deleteByExample(SysMenuExample example);

    int deleteByPrimaryKey(String id);

    int insert(SysMenu record);

    int insertSelective(SysMenu record);

    List<SysMenu> selectByExample(SysMenuExample example);

    SysMenu selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") SysMenu record, @Param("example") SysMenuExample example);

    int updateByExample(@Param("record") SysMenu record, @Param("example") SysMenuExample example);

    int updateByPrimaryKeySelective(SysMenu record);

    int updateByPrimaryKey(SysMenu record);
    
    List<SysMenu> getUserMenus(@Param("userId")Integer userId);
    
    List<SysMenu> getRoleMenusAll(@Param("roleId")Integer roleId);
}